import { Directive, ElementRef, Output, EventEmitter, } from '@angular/core';

@Directive({
  selector: '[render]'
})

export class RenderDirective {

  constructor(
    private el: ElementRef
  ) {
    setTimeout(() => this.render.emit(this.el), 100);
  }

  @Output() render = new EventEmitter<any>();

}
